html,
body {
    /* body默认高度是内容高度，想让body高度自适应，则需要html和body的高度都设置100% */
    height: 100%;
    width: 100%;
}

body {
    background: url(/assets/images/login_bg.jpg) no-repeat center/cover;
}

.box {
    height: 310px;
    width: 400px;
    background-color: #fff;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.box .title {
    height: 60px;
    background: url(/assets/images/login_title.png) no-repeat center;
}

#reg_box {
    display: none;
}

form {
    padding: 0 30px;
}

form a {
    float: right;
    font-size: 12px;
}
.layui-form-item{
    position: relative;
}
.layui-icon{
    position: absolute;
    left: 10px;
    top: 10px;
}
.layui-input{
    padding-left: 32px;
}